/**
    Die Ewigen Extension
    Copyright (C) 2011 DonKrieg @ sonkyu@googlemail.com

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

(function($) {
    $.ewigen.config = function() {   
    }

    $.ewigen.config.SHIP_NAME             = 0;
    $.ewigen.config.SHIP_COST_M           = 1;
    $.ewigen.config.SHIP_COST_D           = 2;
    $.ewigen.config.SHIP_COST_I           = 3;
    $.ewigen.config.SHIP_COST_E           = 4;
    $.ewigen.config.SHIP_COST_T           = 5;
    $.ewigen.config.SHIP_TRAVELTIME       = 6;
    $.ewigen.config.SHIP_POINTS           = 7;


    $.ewigen.config.racenames       = new Array("Ewigen", "Ishtar", "Z'tah-ara" ,"K'tharr", "DX1a23");
    $.ewigen.config.racenamesshort  = new Array("E", "I", "Z" ,"K", "D");

    $.ewigen.config.racedata                        = new Array();

    $.ewigen.config.racedata["E"]                   = new Array();
    $.ewigen.config.racedata["E"]["SHIPS"]          = new Array();
    $.ewigen.config.racedata["E"]["SHIPS"][0]       = ["Hornisse",1000,250,0,0,0,8,150],
    $.ewigen.config.racedata["E"]["SHIPS"][1]       = ["Guillotine",4000,1000,0,0,0,16,600];
    $.ewigen.config.racedata["E"]["SHIPS"][2]       = ["Schakal",15000,5000,1000,0,0,32,2800];
    $.ewigen.config.racedata["E"]["SHIPS"][3]       = ["Marauder",30000,10000,1000,1500,0,64,5900];
    $.ewigen.config.racedata["E"]["SHIPS"][4]       = ["Zerberus",50000,20000,2000,4000,2,96,13200];
    $.ewigen.config.racedata["E"]["SHIPS"][5]       = ["Nachtmar",1500,500,0,0,0,10,250];
    $.ewigen.config.racedata["E"]["SHIPS"][6]       = ["Transmitterschiff",2000,1000,0,0,0,12,400];
    $.ewigen.config.racedata["E"]["SHIPS"][7]       = ["Hydra",50000,30000,5000,5000,1,80,15500];
    $.ewigen.config.racedata["E"]["DEFENSE"]        = new Array();
    $.ewigen.config.racedata["E"]["DEFENSE"][0]     = ["Jägergarnison",10000,2500,0,0,0,4,1500];
    $.ewigen.config.racedata["E"]["DEFENSE"][1]     = ["Raketenturm",800,550,0,0,0,20,190];
    $.ewigen.config.racedata["E"]["DEFENSE"][2]     = ["Laserturm",250,500,0,0,0,10,125];
    $.ewigen.config.racedata["E"]["DEFENSE"][3]     = ["Autokanonenturm",2500,300,50,0,0,28,325];
    $.ewigen.config.racedata["E"]["DEFENSE"][4]     = ["Plasmaturm",2000,1000,500,0,0,48,550];
    $.ewigen.config.racedata["E"]["transportSpace"]      = [];
    $.ewigen.config.racedata["E"]["transportCap"]        = [];
    $.ewigen.config.racedata["E"]["supportBoats"]        = [];
    $.ewigen.config.racedata["E"]["supportDreadnaught"]  = [];

    $.ewigen.config.racedata["I"]                   = new Array();
    $.ewigen.config.racedata["I"]["SHIPS"]          = new Array();
    $.ewigen.config.racedata["I"]["SHIPS"][0]       = ["Caesar",1250,150,0,0,0,8,155];
    $.ewigen.config.racedata["I"]["SHIPS"][1]       = ["Paladin",3500,1000,0,0,0,16,550];
    $.ewigen.config.racedata["I"]["SHIPS"][2]       = ["Vollstrecker",15500,4500,1500,0,0,32,2900];
    $.ewigen.config.racedata["I"]["SHIPS"][3]       = ["Imperator",32000,8000,1000,2000,0,64,5900];
    $.ewigen.config.racedata["I"]["SHIPS"][4]       = ["Excalibur",45000,30000,2000,2000,2,96,13900];
    $.ewigen.config.racedata["I"]["SHIPS"][5]       = ["Phalanx",1200,400,0,0,0,10,200];
    $.ewigen.config.racedata["I"]["SHIPS"][6]       = ["Merlin",2000,1000,0,0,0,12,400];
    $.ewigen.config.racedata["I"]["SHIPS"][7]       = ["Colossus",55000,25000,7000,5000,2,80,16600];
    $.ewigen.config.racedata["I"]["DEFENSE"]        = new Array();
    $.ewigen.config.racedata["I"]["DEFENSE"][0]     = ["Brechergarnison",12000,1500,0,0,0,8,1500];
    $.ewigen.config.racedata["I"]["DEFENSE"][1]     = ["Balistenturm",450,450,0,0,0,16,135];
    $.ewigen.config.racedata["I"]["DEFENSE"][2]     = ["Laserlanzenturm",250,250,0,0,0,8,75];
    $.ewigen.config.racedata["I"]["DEFENSE"][3]     = ["Bolzenkanonenturm",2500,50,0,0,0,20,260];
    $.ewigen.config.racedata["I"]["DEFENSE"][4]     = ["Plasmalanzenturm",1500,1000,250,250,0,40,525];
    $.ewigen.config.racedata["I"]["transportSpace"]      = [1,0,0,0,0,2,0,0];
    $.ewigen.config.racedata["I"]["transportCap"]        = [0,0,0,20,90,0,0,375];
    $.ewigen.config.racedata["I"]["supportBoats"]        = [0,0,0,11,21,0,0,36];
    $.ewigen.config.racedata["I"]["supportDreadnaught"]  = [0,0,5,3,0,0,0,0];

    $.ewigen.config.racedata["Z"]                   = new Array();
    $.ewigen.config.racedata["Z"]["SHIPS"]          = new Array();
    $.ewigen.config.racedata["Z"]["SHIPS"][0]       = ["Wespe",500,150,0,0,0,6,80];
    $.ewigen.config.racedata["Z"]["SHIPS"][1]       = ["Feuerskorpion",3000,1000,0,0,0,14,500];
    $.ewigen.config.racedata["Z"]["SHIPS"][2]       = ["Geisterschrecke",10000,5000,2000,500,0,30,2800];
    $.ewigen.config.racedata["Z"]["SHIPS"][3]       = ["Skarabäus",25000,10000,1000,500,0,60,5000];
    $.ewigen.config.racedata["Z"]["SHIPS"][4]       = ["Mantis",50000,15000,3000,3000,2,90,12100];
    $.ewigen.config.racedata["Z"]["SHIPS"][5]       = ["Höllenkäfer",1000,750,0,0,0,8,250];
    $.ewigen.config.racedata["Z"]["SHIPS"][6]       = ["Sammler",2000,1000,0,0,0,6,400];
    $.ewigen.config.racedata["Z"]["SHIPS"][7]       = ["Ekelbrüter",50000,25000,7000,6000,1,76,15500];
    $.ewigen.config.racedata["Z"]["DEFENSE"]        = new Array();
    $.ewigen.config.racedata["Z"]["DEFENSE"][0]     = ["Larvenstock",5000,1500,0,0,0,6,800];
    $.ewigen.config.racedata["Z"]["DEFENSE"][1]     = ["Speichelbatterie",600,400,100,0,0,20,170];
    $.ewigen.config.racedata["Z"]["DEFENSE"][2]     = ["Bodenstachel",300,300,0,0,0,10,90];
    $.ewigen.config.racedata["Z"]["DEFENSE"][3]     = ["Giftstachelbatterie",2000,400,50,0,0,28,295];
    $.ewigen.config.racedata["Z"]["DEFENSE"][4]     = ["Feuerstachelbatterie",1000,1500,100,250,0,48,530];
    $.ewigen.config.racedata["Z"]["transportSpace"]      = [1,0,0,0,0,2,0,0];
    $.ewigen.config.racedata["Z"]["transportCap"]        = [0,0,0,20,80,0,0,225];
    $.ewigen.config.racedata["Z"]["supportBoats"]        = [0,0,0,10,20,0,0,35];
    $.ewigen.config.racedata["Z"]["supportDreadnaught"]  = [0,0,5,3,0,0,0,0];

    $.ewigen.config.racedata["K"]                   = new Array();
    $.ewigen.config.racedata["K"]["SHIPS"]          = new Array();
    $.ewigen.config.racedata["K"]["SHIPS"][0]       = ["Spider",750,500,0,0,0,8,175];
    $.ewigen.config.racedata["K"]["SHIPS"][1]       = ["Arctic Spider",4000,1500,0,0,0,16,700];
    $.ewigen.config.racedata["K"]["SHIPS"][2]       = ["Werespider",15000,2500,1500,1000,0,32,2850];
    $.ewigen.config.racedata["K"]["SHIPS"][3]       = ["Tarantula",30000,6500,2000,2200,0,64,5780];
    $.ewigen.config.racedata["K"]["SHIPS"][4]       = ["Black Widow",45000,25000,2000,3000,1,96,12300];
    $.ewigen.config.racedata["K"]["SHIPS"][5]       = ["Hellspider",1000,500,0,0,0,10,200];
    $.ewigen.config.racedata["K"]["SHIPS"][6]       = ["Netzfänger",2000,1000,0,0,0,12,400];
    $.ewigen.config.racedata["K"]["SHIPS"][7]       = ["Gigantula",60000,30000,6000,6000,1,80,17200];
    $.ewigen.config.racedata["K"]["DEFENSE"]        = new Array();
    $.ewigen.config.racedata["K"]["DEFENSE"][0]     = ["Schwarm der Nestverteidiger",7500,5000,0,0,0,8,1750];
    $.ewigen.config.racedata["K"]["DEFENSE"][1]     = ["Sporendrüse",1000,300,0,0,0,20,160];
    $.ewigen.config.racedata["K"]["DEFENSE"][2]     = ["Lichtdrüse",500,500,0,0,0,10,150];
    $.ewigen.config.racedata["K"]["DEFENSE"][3]     = ["Materiedrüse",3000,200,0,0,0,28,340];
    $.ewigen.config.racedata["K"]["DEFENSE"][4]     = ["Plasmadrüse",2250,1500,300,0,0,48,615];
    $.ewigen.config.racedata["K"]["transportSpace"]      = [1,0,0,0,0,2,0,0];
    $.ewigen.config.racedata["K"]["transportCap"]        = [0,0,0,20,90,0,0,375];
    $.ewigen.config.racedata["K"]["supportBoats"]        = [0,0,0,10,20,0,0,35];
    $.ewigen.config.racedata["K"]["supportDreadnaught"]  = [0,0,5,3,0,0,0,0];

    $.ewigen.config.racedata["D"]                   = new Array();
    $.ewigen.config.racedata["D"]["SHIPS"]          = new Array();
    $.ewigen.config.racedata["D"]["SHIPS"][0]       = ["Xinth-Xc",600,500,0,0,0,7,160];
    $.ewigen.config.racedata["D"]["SHIPS"][1]       = ["Hunm-oc",3250,1500,0,0,0,15,625];
    $.ewigen.config.racedata["D"]["SHIPS"][2]       = ["Ez-maC",12000,4000,1800,750,0,31,2840];
    $.ewigen.config.racedata["D"]["SHIPS"][3]       = ["Zao-tuX",34000,7000,750,1250,0,62,5525];
    $.ewigen.config.racedata["D"]["SHIPS"][4]       = ["Lor-ReX",55000,25000,3000,2500,2,93,14400];
    $.ewigen.config.racedata["D"]["SHIPS"][5]       = ["Xor-L2R",750,750,0,0,0,9,225];
    $.ewigen.config.racedata["D"]["SHIPS"][6]       = ["Os-mTz",2000,1000,0,0,0,11,400];
    $.ewigen.config.racedata["D"]["SHIPS"][7]       = ["Bi-SoX",58000,27000,6000,4000,2,78,16600];
    $.ewigen.config.racedata["D"]["DEFENSE"]        = new Array();
    $.ewigen.config.racedata["D"]["DEFENSE"][0]     = ["Xinth-Base",8500,3500,0,0,0,7,1550];
    $.ewigen.config.racedata["D"]["DEFENSE"][1]     = ["EMP-Kanonen-Styx",450,450,100,0,0,18,165];
    $.ewigen.config.racedata["D"]["DEFENSE"][2]     = ["X-Magma-Styx",400,350,0,0,0,9,110];
    $.ewigen.config.racedata["D"]["DEFENSE"][3]     = ["Zermalmer-Styx",2500,100,100,0,0,24,300];
    $.ewigen.config.racedata["D"]["DEFENSE"][4]     = ["ER-Plasmawerfer-Styx",2000,1250,350,150,0,44,615];
    $.ewigen.config.racedata["D"]["transportSpace"]      = [1,0,0,0,0,2,0,0];
    $.ewigen.config.racedata["D"]["transportCap"]        = [0,0,0,40,120,0,0,600];
    $.ewigen.config.racedata["D"]["supportBoats"]        = [0,0,0,10,20,0,0,30];
    $.ewigen.config.racedata["D"]["supportDreadnaught"]  = [0,0,5,3,0,0,0,0];
})(jQuery)